/**
 * format for string or someting
 */

export const formatAddress = (address, cutNum) => {
  if (address.length > 24) {
    address = address.slice(0, cutNum || 12) + '......' + address.slice(-cutNum || -12)
    return address
  }
  return address
}
